package com.aorise.model.expose;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @Auther: zhouhao
 * @Date: 2019/7/11
 * @Description:    防雷器状态
 */
@Validated
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="Spd",description="防雷器状态")
public class Spd {

    /**
     *正常:0,失效: 1
     */
    @NotNull(message = "防雷器状态不能为空")
    private Integer Status;

    /**
     * 雷击次数
     */
    private Integer Times;

    @JsonProperty("Status")
    public Integer getStatus() {
        return Status;
    }

    @JsonProperty("Status")
    public void setStatus(Integer status) {
        Status = status;
    }

    @JsonProperty("Times")
    public Integer getTimes() {
        return Times;
    }

    @JsonProperty("Times")
    public void setTimes(Integer times) {
        Times = times;
    }
}
